public class TypeConversionExample {
    public static void main(String[] args) {
        byte myByte = 10;
        int myInt;
        float myFloat;
        double myDouble;

        // byte转换为int
        myInt = myByte;

        // int转换为float
        myFloat = myInt;

        // int转换为double
        myDouble = myInt;

        System.out.println("Byte value: " + myByte);
        System.out.println("Int value: " + myInt);
        System.out.println("Float value: " + myFloat);
        System.out.println("Double value: " + myDouble);
    }
}